var express = require('express');
var router = express.Router();

var dataCtrl = require('../controllers/upload.controller.js')

/*router.get('/data/:id',dataCtrl.get);
router.post('/data',dataCtrl.create);
router.post('/data/:id',dataCtrl.update);
router.delete('/data/:id',dataCtrl.remove);
router.post('/list',dataCtrl.list);
*/
router.get('/', function(req, res, next) {
  res.send('upload');
});
router.post('/uploads',dataCtrl.upload);
router.post('/list',dataCtrl.list);
router.delete('/data/:id',dataCtrl.remove);

module.exports = router;
